import request from '@/utils/request'

// 查询试题题目选项管理列表
export function listAnswer(query) {
  return request({
    url: '/question/answer/list',
    method: 'get',
    params: query
  })
}

// 查询试题题目选项管理详细
export function getAnswer(id) {
  return request({
    url: '/question/answer/' + id,
    method: 'get'
  })
}

// 新增试题题目选项管理
export function addAnswer(data) {
  return request({
    url: '/question/answer',
    method: 'post',
    data: data
  })
}

// 修改试题题目选项管理
export function updateAnswer(data) {
  return request({
    url: '/question/answer',
    method: 'put',
    data: data
  })
}

// 删除试题题目选项管理
export function delAnswer(id) {
  return request({
    url: '/question/answer/' + id,
    method: 'delete'
  })
}

// 导出试题题目选项管理
export function exportAnswer(query) {
  return request({
    url: '/question/answer/export',
    method: 'get',
    params: query
  })
}
